// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
// 防止某些设备上出现300毫秒的延迟问题
// import fastclick from 'fastclick';
import VueAwesomeSwiper from 'vue-awesome-swiper'
import App from './App';
import router from './router';
// 使用vuex需要先引入store
import store from './store'
// 重置所有样式,样式统一
import 'styles/reset.css';
// 引入boder.css是为了解决高倍屏可能(如2倍屏,1像素的边框会变成2像素)的问题.
import 'styles/border.css';
// 引入iconfont的css
import 'styles/iconfont.css';
import 'swiper/dist/css/swiper.css'

Vue.config.productionTip = false;
// fastclick.attach(document.body);
Vue.use(VueAwesomeSwiper)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  // 传入store,让vue把store里面的state注入到每个组件里面,在app下的每个组件都可以使用this.$store.state来获取store里面state里面的值
  store,
  components: { App },
  template: '<App/>',
});
